#!/usr/bin/env python
# coding: utf-8

# In[ ]:


import numpy as np


# In[ ]:


x1 = np.array(12)


# In[ ]:


x1


# In[ ]:


x1.ndim


# In[ ]:


x2 = np.array([1,2,3,4,5])


# In[ ]:


x2


# In[ ]:


x2.ndim


# In[ ]:


x3 = np.array([[5,4,5,6,7],
              [7,8,9,0,4],
              [8,5,3,2,1]])


# In[ ]:


x3


# In[ ]:


x3.ndim


# In[ ]:


x3.shape


# In[ ]:


from keras.datasets import mnist


# In[ ]:


(train_images, train_labels), (test_images, test_labels) = mnist.load_data()


# In[ ]:


train_images.ndim


# In[ ]:


train_images.shape


# In[ ]:


train_images.dtype


# In[ ]:


digit = train_images[4]


# In[ ]:


import matplotlib.pyplot as plt


# In[ ]:


plt.imshow(digit, camp=plt.cm.binary)


# In[ ]:


plt.show()


# In[ ]:




